<template>
	<view class="content">
			<web-view :src="infoUrl"></web-view>
	</view>
</template>

<script>
export default {
	data() {
		return {
			email: '',
			doc_id: '',
			infoUrl:'',
		};
	},
	onLoad(param) {
		this.doc_id = param.id;
		this.getFilesInfo(this.doc_id) 
		console.log(this.doc_id);
	},
	methods: {
		getFilesInfo(id) {
			uni.showLoading({
				title: '',
				mask: false
			});
			this.$request({
				url: this.$store.state.baseUrl + '/lwj/get_document_info_new',
				method: 'POST',
				header: {
					token: this.$store.state.token
				},
				data: {doc_id:id},
				success: res => {
					if(res.data.code==1) {
							this.infoUrl = res.data.data.list;
							console.log(this.infoUrl)
					}
					
					
				},
				fail: () => {},
				complete: () => {}
			});
		},
	}
};
</script>

<style></style>
